package com.xli.organ.user.frameuserrolerelation.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xli.organ.user.frameuserrolerelation.entity.FrameUserRoleRelation;
import jakarta.validation.constraints.NotNull;

import java.util.List;

public interface IFrameUserRoleRelationService extends IService<FrameUserRoleRelation> {

    boolean insert(@NotNull FrameUserRoleRelation frameUserRoleRelation);

    boolean delete(@NotNull Long id);

    FrameUserRoleRelation find(@NotNull Long id);

    List<FrameUserRoleRelation> findList(@NotNull QueryWrapper<FrameUserRoleRelation> qw);

    List<FrameUserRoleRelation> findRoleListByUserId(@NotNull Long userId);
}
